Skip to main content

Tab: Log

You can view the PLC log on this tab of the generic device editor. It lists the events that were recorded on the target system. This concerns the following:

  • Events during the startup and shutdown of the system (components loaded, with version)

  • Application download and loading of the boot application

  • Custom entries

  • Log entries from I/O drivers

  • Log entries from data sources

Tip

The Log tab also opens when you click Open Log Page. You can configure this as a menu command in the Customize dialog.

Table 44. Menu bar
_cds_icon_update.png

Refreshes the list of log events for all runtime system component

Components

Filters the display of log events by the runtime system components selected in the list box

Example:

CmpApp displays all events which occur in these components, for example "Application [ <name> ] loaded via [OnlineChange]".

<all components>: Displays the reported events of all components

_cds_icon_move_up.png

Loads the next page with newer log messages

_cds_icon_move_down.png

Loads the previous page with older log messages

_cds_icon_move_top.png

Loads the page with the newest log entries and enables automatic scrolling

_cds_icon_move_top_refresh.png

_cds_icon_move_top_refresh.png: Indicates that there are new log messages which have not been displayed yet

Tip

This is also displayed on the status bar as Auto-Scroll: ON.

_cds_icon_move_bottom.png

Loads the page with oldest log messages

_cds_icon_warning.png

Filters events with the severity Warning and notifies about how many

Blue-outlined button: Warnings are displayed.

_cds_icon_error.png

Filters events with the severity Error and notifies about how many

Blue-outlined button: Errors are displayed.

_cds_icon_exception.png

Filters events with the severity Exception and notifies about how many

Blue-outlined button: Exceptions are displayed.

_cds_icon_info.png

Filters events with the severity Information and notifies about how many

Blue-outlined button: Information is displayed.

_cds_icon_debug.png

Filters events with the severity Debug and notifies about how many

Blue-outlined button: Debug messages are displayed.

Search in messages

Input field for search text

When you enter one or more characters in the search field, the logger messages will highlight the hits in yellow.

_cds_icon_goto_next.png

Jumps to the next hit

_cds_icon_goto_previous.png

Jumps to the previous hit

Logger

Enables a logger for displaying its recorded events

By default, the <default logger> defined by the system is set. For example, that is the logger PlcLog for a CODESYS Control Win runtime system.

.Audit.log: This logger shows all user interactions with the PLC. The user name is also logged. These are actions such as download, start, stop or set breakpoints. Failed attempts are also logged if a user is not allowed to perform certain actions.

UTC time

_cds_icon_option_deactivated.png: Converts the times displayed below Timestamp to the local time of the development system

The conversion is based on the time zone of the operating system where the CODESYS is running. (default setting)

standard icon: Displays the original timestamp of the runtime system

If you change the option, then the displayed timestamp is converted automatically.

_cds_icon_save_in_xml_file.png

Exports the list contents to an xml file

You can select the file name and location.

_cds_icon_load_from_xml_file.png

Imports an XML file with log messages stored in the file system

A separate window opens to display the log messages.



Display window with log file

Tabular display of the log messages

Ten thousand log messages are displayed per page.

Severity

  • _cds_icon_warning.png: Warning

  • _cds_icon_error.png: Error

  • _cds_icon_exception.png: Exception

  • _cds_icon_info.png: Information

  • _cds_icon_debug.png: Debug message

Time stamp

Date and time of the development system or of the runtime system)

Example: 1/12/2007 9:48

Description

Description of the event

Example: PLC started

Component

Runtime component where the reported event occurred

Table 45. Status bar

Auto-Scroll

Displays whether auto-scrolling is enabled (ON) or disabled (OFF)

  • ON: The log list is refreshed automatically when changes occur.

  • OFF: When a new log event occurs, it is displayed next to Off. Moreover, the _cds_icon_move_top.png button is decorated with _cds_icon_move_top_refresh.png on the menu bar.

Tip

Hint: Click the _cds_icon_move_top.png button to enable Auto-Scroll.



Note

Error checking

For exceptions with the *SOURCEPOSITION* description, the affected function opens in the editor by double-clicking it or by means of the Display Source Code in Editor command in the context menu. The cursor jumps to the line that is causing the error. You can also perform this diagnosis when you have the CODESYS project archive, including the download information files and the exported log file.

When the affected function is protected, then the following message appears: "The source code is not available for <function name>."

Tip

If a VendorException is reported, then a manufacturer-specific exception error has occurred in the CODESYS runtime. Contact the PLC manufacturer for more information.